<template>
  <div>
    <pre>{{ userData }}</pre>
  </div>
</template>
 
<script>
  import axios from 'axios';
export default {
  data() {
    return {

      userData:''
    };
  },
  created() {
      this.jsonDataString();
    },
    methods:  {
    jsonDataString() {
      var xx=''
      axios.get('https://www.cailianxinwen.com/app/vote/getVoteItemList?voteId=503').then(response=>{
        console.log(response.data)
        this.userData=response.data

      })
      console.log(xx)
      return JSON.stringify(xx, null, 2);
    }
  }
};
</script>